/*
 * GeoVISTA Center (Penn State, Dept. of Geography)
 * Copyright (c), 2003-2011,  Jin Chen and Alan M. MacEachren, GeoVISTA Center, Penn State University
 * Licensed under Simplified BSD License
 *
 *
 * @author: jin Chen 
 * @date: Feb 3, 2005$
 * @version: 1.0
 */
package edu.psu.geovista.app.pcp.plot.control;

import edu.psu.geovista.app.pcp.plot.layer.AxisLayer;

import java.awt.*;
import java.util.Properties;

public class DfSetting implements Settings {

    Properties settings=new Properties();

    public DfSetting() {

        init();
    }

    public Object getSetting(String name){
          return settings.get(name);
    }

    protected void  init(){
          setApprConfig();
          setLocationConfig();
    }
    protected void setAxis(){

    }
    protected void setApprConfig(){
        settings.put(APPR_BACKGROUND,Color.BLACK );
        settings.put(APPR_AXIS_COLOR,Color.YELLOW );
        settings.put(APPR_SELECT,Color.RED );


        settings.put(Settings.APPR_AUTOFIT, new Boolean(true));
        settings.put(Settings.APPR_FITV, new Boolean(true));
        settings.put(Settings.APPR_FITH, new Boolean(true));

        settings.put(AxisLayer.AxisLayerConfigInfo.ShowYAxisFoot,true);
        settings.put(AxisLayer.AxisLayerConfigInfo.ShowFilterTick,true);
        settings.put(AxisLayer.AxisLayerConfigInfo.ShowLabel,true);
    }

    private void setLocationConfig() {
        settings.put(Settings.AXLOC_SHOWX, new Boolean(false));
        settings.put(Settings.AXLOC_SHOWLB, new Boolean(true));
    }

}
